package com.learning.walter.pattern.factory.abstr;

import com.learning.walter.pattern.factory.method.BurnKissFactory;
import com.learning.walter.pattern.factory.method.HotGlutenFactory;
import com.learning.walter.pattern.factory.method.HotStripFactory;
import com.learning.walter.pattern.factory.method.LaFanTianFactory;
import com.learning.walter.pattern.factory.method.WeiLongFactory;
import com.learning.walter.pattern.factory.model.HotStrip;

public abstract class AbstractHotStripFactory implements HotStripFactory {

	HotStripFactory getFactory(String name) {
		switch (name) {
		case "火爆鸡筋":
			return new HotGlutenFactory();
		case "亲嘴烧":
			return new BurnKissFactory();
		case "卫龙":
			return new WeiLongFactory();
		case "辣翻天":
			return new LaFanTianFactory();
		default:
			return null;
		}
	}

	@Override
	public abstract HotStrip getHotStrip();
}
